WebAddSessionVariable

Note: This statement is only used in load test scripts. See Load Testing for more information.

Adds a form variable to look for in input fields on responses from the WebGet and WebPost statements and replaces the variable value captured during recording with the value returned from the web server. The web server response value is used to update input data in WebGet and WebPost statements that follow this statement.

This statement must be manually added to load test scripts. See Adding statements.

To stop updating form variables, use the WebRemoveSessionVariable or WebRemoveAllSessionVariables statement.

Syntax

WebAddSessionVariable("FormVariable")

Arguments

Argument Description
FormVariable Variable to update in sessions.

Example

WebAddSessionVariable("sessionid")